package router

import (
	"ginProject/api"
	"github.com/gin-gonic/gin"
)

func Router(r *gin.Engine) {
	v1 := r.Group("/v1")
	{
		userRouter := v1.Group("/user")
		{
			userRouter.POST("/login", api.Login)
			userRouter.GET("/register", api.Register)
			userRouter.GET("/getUserInfoById", api.GetUserInfoById)
		}
	}
}
